package com.fzn.yygh.hosp.service;

import com.fzn.yygh.model.hosp.Department;
import com.fzn.yygh.vo.hosp.DepartmentQueryVo;
import com.fzn.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author fzn
 * @date 2022/5/7
 * @apiNote 上传科室接口
 */
public interface DepartmentService {

    void save(Map<String, Object> paramMap);

    Page<Department> selectPage(Integer page, Integer limit, DepartmentQueryVo departmentQueryVo);


    /**
     * 删除科室
     * @param hoscode
     * @param depcode
     */
    void remove(String hoscode, String depcode);

    //根据医院编号，查询医院所有科室列表
    List<DepartmentVo> findDeptTree(String hoscode);

    //根据科室编号，和医院编号，查询科室名称
    String getDepName(String hoscode, String depcode);


}
